<script setup lang="ts">
import { NDataTable } from 'naive-ui'

defineProps({
  rowKey: {
    type: [String, Function],
    default: () => (row: any) => {
      return row.id ?? row.key;
    },
  }
})
</script>

<template>
    <NDataTable v-bind="$attrs" :row-key="rowKey">
      <slot />
    </NDataTable>
</template>
